Skip to content

chore: shared Windows agent launcher and full third-party licence notices - #21

Closed
gbarnai wants to merge 5 commits into
mainfrom
chore/launcher-and-notices
Closed

gbarnai wants to merge 5 commits into
mainfrom
chore/launcher-and-notices

Conversation

@gbarnai

@gbarnai gbarnai commented Nov 29, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Replace backend/app/agent/agent_lookup.py with FormVis's shared finder 1.1.0 (byte for byte, sha256 313fcd40...). Record its hash in setup/agents.py and move the Windows launcher tests to the 1.1.0 behaviour (new test_agent_lookup_windows.py).
  • Add setup/notices.py (with notices_python.py and notices_crates.py) and the generated THIRD-PARTY-NOTICES.txt. Together they hold the full licence texts of the Python runtime and PyInstaller bootloader, the Python packages frozen on each platform, the window's npm production dependencies, all fvx-core and Tauri shell crates, and a pointer to the downloaded FFmpeg release.
  • Ship the notices file in the installers (tauri.conf.json resources) and in the frozen engine (--add-data). Serve it from GET /api/notices and show it in a Third-party notices section of the About FormVFX dialog.
  • Add a 'Third-party notices cover what ships' step to the CI test job, running setup/notices.py --check. Add backend/tests/test_notices.py.
  • Keep NOTICE.md as the human list: point it to the new file and add the packages it was missing (opentelemetry-api, cryptography, cffi, pycparser, pywinpty, cssparser-macros). Link the file from README and log both changes in backend/HASHOUT_LOG.md.

Tests

  • The notices check and the tests for the launcher behaviour this app depends on were run locally on macOS; failures seen locally also fail on main. Please rely on this PR's CI.

How to ship

  • Independent of other repos. The shared launcher file is the same byte for byte in every Form app (agent_lookup 1.1.0, source in FormVis). No version bump; it can go into the next release.

The Windows starter now follows npm, pnpm and bun shims as an argv
list, reads a program name the way Windows opens it, and refuses any
word, the program path included, that the command interpreter would
change. The refusal is CommandLineRefused, an OSError. The hash record
gains 1.1.0 and the Windows tests follow FormVis's.
setup/notices.py writes THIRD-PARTY-NOTICES.txt: the Python runtime and
PyInstaller bootloader, the Python packages each platform freezes
(read from installed packages or per-platform wheels), the window's
production npm packages, every crate of fvx-core and the desktop shell,
and the downloaded FFmpeg release. --check runs in the CI test job.
The installers and the frozen engine carry the file, /api/notices serves
it and About FormVFX shows it. NOTICE.md stays the human list and gains
the packages it was missing.
@gbarnai
gbarnai requested a review from nodemode-ai as a code owner November 29, 2026 23:15
Vendor the upstream licence files (or SPDX reconstructions) for the 55
crates whose published package carries none under setup/licence_texts,
each with a SOURCE.txt, and have setup/notices.py use them, naming the
upstream file and ref in each entry's note.
setup/licence_texts is a folder of vendored licence files, so bash -n on it exited 126.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants